From: Florian Müllner Date: Mon, 11 Nov 2019 14:01:00 +0000 (+0100) Subject: ctrlAltTab: Use arrow function for callback X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~430 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=69f63dc94ff0571137c4bb0756f24a2e32027bfa;p=gnome-shell.git ctrlAltTab: Use arrow function for callback This was left over because we are binding a different `this`, but it is easy enough to replace. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805 --- diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index cb7e4cd69..4104f49f9 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -100,9 +100,9 @@ var CtrlAltTabManager = class CtrlAltTabManager { items.push({ name: windows[i].title, proxy: windows[i].get_compositor_private(), - focusCallback: function(timestamp) { - Main.activateWindow(this, timestamp); - }.bind(windows[i]), + focusCallback: timestamp => { + Main.activateWindow(windows[i], timestamp); + }, iconActor: icon, iconName: iconName, sortGroup: SortGroup.MIDDLE });